import java.io.File;
import java.io.IOException;

public class demo {
    public static void main(String[] args) throws IOException {
        for (int i = 1; i > 0; i++) {
            File dir = new File("F:\\demo" + i);
            if (!dir.exists()) {
                dir.mkdirs();
                for (int j = 1; j > 0; j++) {
                    File file = new File(dir, "test" + j + ".txt");
                    if (!file.exists()) {
                        file.createNewFile();
                    }
                }
            }
        }
    }
}
